package cn.ecnu.note.service;

import cn.ecnu.note.vo.NoteFrontVo;
import cn.ecnu.note.vo.NoteVo;
import cn.ecnu.note.vo.ViewNoteVo;

public interface NoteService {
    NoteVo addNote(NoteFrontVo vo);

    int deleteNoteById(Integer noteId, Integer userId, Integer permission);

    ViewNoteVo getNoteByPaperId(Integer paperId, Integer pageNum);

    ViewNoteVo getNoteByUserId(Integer userId, Integer pageNum);

    int updateNoteById(NoteFrontVo vo, Integer userId, Integer permission);

    NoteVo getNoteByNoteId(Integer noteId);
}
